const live = {
  list: {
    errCode: 0,
    data: [
      {
        id: "1",
        title: "高等数学：第一讲",
        author: "张老师",
        videoUrl:
          "http://play.memego.com/live/738809712740401152.flv?txSecret=db221671a1ca8c2deef2169e726e12db&txTime=5F2406C5",
        createTime: "1594707153490",
        updateTime: "1594707153490",
        startTime: "1594707153490",
        endTime: "1594707153490",
        thumb: "",
        status: "PENDING",
        summary: "微积分很重要，不要错过。微积分很重要，不要错过。"
      },
      {
        id: "2",
        title: "高等数学：第二讲",
        author: "张老师",
        videoUrl:
          "http://vod.memego.com/95d625c0vodcq1253125461/d7bb11735285890802885390941/9NCtld0QQeIA.flv",
        createTime: "1594707153490",
        updateTime: "1594707153490",
        startTime: "1594707153490",
        endTime: "1594707153490",
        thumb:
          "http://192.168.0.74:58082/vod-course-thumb/1f3c2258ea5d4d25a48a36677f6535f1.jpeg",
        status: "END",
        summary: "微积分很重要，不要错过。微积分很重要，不要错过。"
      },
      {
        id: "3",
        title: "高等数学：第三讲",
        author: "张老师",
        videoUrl:
          "http://vod.memego.com/95d625c0vodcq1253125461/d7bb11735285890802885390941/9NCtld0QQeIA.flv",
        createTime: "1594707153490",
        updateTime: "1594707153491",
        startTime: "1594707153491",
        endTime: "1594707153491",
        thumb: "http://img2.mukewang.com/5ed8c19b000108e602940333.jpg",
        status: "PLAYING",
        summary: "微积分很重要，不要错过。微积分很重要，不要错过。"
      }
    ],
    total: 100
  },
  status: {
    errCode: 0,
    data: {
      status: "READY",
      signCount: 123
    }
  },
  messages: {
    errCode: 0,
    data: [
      {
        id: "740237421702021120",
        nickname: "rong",
        userId: "123456",
        content: "这是留言的内容，最大140个字符",
        createTime: "1596527954000"
      },
      {
        id: "740237421702021121",
        nickname: "dong",
        userId: "340237421702021119",
        content: "~~~这是留言的内容，最大140个字符~~~",
        createTime: "1596527954000"
      }
    ]
  }
};

export default {
  getLives: config => {
    console.log(`======getLives==========`);
    console.log(config);
    console.log(`================`);
    return live.list;
  },
  getCourseStatus: config => {
    console.log(`======getCourseStatus==========`);
    console.log(config);
    console.log(`================`);
    return live.status;
  },
  getMessageList: config => {
    console.log(`======getMessageList==========`);
    console.log(config);
    console.log(`================`);
    return live.messages;
  }
};
